package com.xiaoqianxin.entity;

/**
 * 网络公共回复类
 */
public class CommonResult {

    private String msg;

    private boolean status;

    private Object data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public void setFailed(String msg) {
        this.status = false;
        this.data = null;
        this.msg = msg;
    }

    public void setSucceed(Object object) {
        this.status = true;
        this.data = object;
        this.msg = "请求成功";
    }

}
